/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package interpretadorportugolvisual.partes;

import java.awt.Polygon;

/**
 *
 * @author abraaoisvioliveirasouzadocarmo
 */
public class SetaEsquerda extends Seta {

    public SetaEsquerda(int x, int y) {
        super(x,y);
    }

    public Polygon createPolygon(int x, int y, int fator) {
        Polygon poly = new Polygon();

        poly.addPoint(fator*0+x, fator*0+y);//PONTA
        poly.addPoint(fator*5+x, fator*-3+y);
        poly.addPoint(fator*5+x, fator*-1+y);
        poly.addPoint(fator*25+x, fator*-1+y);
        poly.addPoint(fator*25+x, fator*1+y);
        poly.addPoint(fator*5+x, fator*1+y);
        poly.addPoint(fator*5+x, fator*3+y);

        return poly;
    }
}
